<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.hbyj.hbm.vo.*"%>
<%@page import="com.hbyj.db.function.DbTools;"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	Members mbInfo = (Members)request.getSession().getAttribute("SysUser");
	String lyCode = "";
	Departments deptm =new Departments();
	try{
		lyCode = mbInfo.getLyCode();
		
	}catch(Exception e){
		 response.sendRedirect("login.jsp");
		 return;
	}
	deptm = mbInfo.getDepartments();
	deptm =  mbInfo.getDepartments();//拿到单位部门信息
	
	DepartmentCategory deptmc = deptm.getDepartmentCategory();
	String userDep = deptmc.getName();//拿到单位名称
	Set set = mbInfo.getMemberRoles();
	Iterator it = set.iterator();
	MemberRole mr = (MemberRole)it.next();
	Roles role = mr.getRoles();//拿到角色信息
	String roleName = role.getName();
	String userName = mbInfo.getEmpName();
	String userDW = deptm.getName();;
	//String hql = "from YjczYjcz09 where yjcz09030 = '"+userName +"'";
	//List list = (List)DbTools.findByHql(hql);
	//if(list.size()>0){
	//YjczYjcz09 yjcz09 = (YjczYjcz09)list.get(0);
	//userDW= yjcz09.getYjcz09020();
	//}
	//判断，如果是管理员，可以点击“系统维护”按钮
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">   
  <head>
    <title>湖北省地质灾害应急响应系统</title>
	  
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">  </meta>

<!-- 引入的js文件包 --> 
	<script src="lib/OpenLayers.debug.js" type="text/javascript"></script>
	
	<script src="lib/jquery-1.7.1.min.js" type="text/javascript"></script>
	<!--<script src="lib/jquery-ui-1.8.17.custom.min.js" type="text/javascript"></script>-->
	<link rel="stylesheet" href="lib/jqueryui/css/ui-lightness/jquery-ui-1.9.2.custom.min.css" type="text/css"></link>
	<script src="lib/jqueryui/js/jquery-ui-1.9.2.custom.js" type="text/javascript"></script>
	<script src="lib/jquery_dlg/lhgdialog.js" type="text/javascript"></script>
    <script src="lib/zdclient.js" type="text/javascript"></script>
    <script src="lib/easyui/jquery.easyui.min_new.js" type="text/javascript" ></script>
    <script src="lib/fusionChart/FusionCharts.js" type="text/javascript"></script>
<!-- 自己编写js文件 -->
	<script src="js/util.js" type="text/javascript"></script>
	<script src="js/sfuncbar.js" type="text/javascript"></script>
	<script src="js/secondaryfuncbar.js" type="text/javascript"></script>
	<script src="js/bfuncbar.js" type="text/javascript"></script>
	<script src="js/global.js" type="text/javascript"></script>
	<script src="js/mapchangebar.js" type="text/javascript"></script>
	<script src="js/legendpanel.js" type="text/javascript"></script>
	<script src="js/zbjlwritedlg.js" type="text/javascript"></script>
	<script src="js/eventcontroldlg.js" type="text/javascript"></script>
	<script src="js/minbar.js" type="text/javascript"></script>
	<script src="js/init.js" type="text/javascript"></script>
	<script src="js/NestFramedCloud.js" type="text/javascript"></script>
	
	<script src="js/maplocationutil.js" type="text/javascript"></script>
	<script  src="lib/data.js" type="text/javascript"></script>
	<script src="js/infoquery.js"  type="text/javascript"></script>
	<!--对话框 -->
	<script src="js/yjzsfunctiondlg/oneyjtxdlg.js" type="text/javascript"></script>
	<script src="js/yjzsfunctiondlg/oneyjzbdlg.js" type="text/javascript"></script>
	<script src="js/yjzsfunctiondlg/oneyappdlg.js" type="text/javascript"></script>
	<script src="js/yjzsfunctiondlg/onefzjcdlg.js" type="text/javascript"></script>
	<script src="js/yjzsfunctiondlg/onextzhdlg.js" type="text/javascript"></script>
	<script src="js/yjzsfunctiondlg/onefxbbdlg.js" type="text/javascript"></script>
	<script src="js/yjzsfunctiondlg/onexxbsdlg.js" type="text/javascript"></script>
	
	<script src="js/sjglfunctiondlg/twosjcxdlg.js" type="text/javascript"></script>
	
	<script src="js/yjdcfunctiondlg/threedcwddlg.js" type="text/javascript"></script>
	<script src="js/yjdcfunctiondlg/threesbgldlg.js" type="text/javascript"></script>

	<script src="js/yjdcfunctiondlg/threexxcjdlg.js" type="text/javascript"></script>
	<script src="js/yjdcfunctiondlg/threexxcxdlg.js" type="text/javascript"></script>
	<script src="js/yjdcfunctiondlg/threexxdrdlg.js" type="text/javascript"></script>
	
	<script src="js/yjdcfunctiondlg/threebbscdlg.js" type="text/javascript"></script>
	
	<script src="js/yjhsfunctiondlg/sevyjhsdlg.js" type="text/javascript"></script>
	
	 <script  src="js/yjdcfunctiondlg/querysketch.js" type="text/javascript"></script>
	 
	<script  src="js/zhdDingweiGuijiCaseJsp.js" type="text/javascript"></script>
	<!-- 对话框的样式 -->
	<link href="lib/jquery_dlg/skins/blue.css" rel="stylesheet" type="text/css" />
	
<!-- 自己编写css文件 -->
	<link href="style/index.css" rel="stylesheet" type="text/css" />
	<link href="style/sfuncbar.css" rel="stylesheet" type="text/css" />
	<link href="style/secondaryfuncbar.css" rel="stylesheet" type="text/css"></link>
	<link href="style/bfuncbar.css" rel="stylesheet" type="text/css" />
	<link href="style/style.css" rel="stylesheet" type="text/css"></link>
	<link href="style/mapchangebar.css" rel="stylesheet" type="text/css"></link>
	<link href="style/legendpanel.css" rel="stylesheet" type="text/css"></link>
	<link href="style/minbar.css" rel="stylesheet" type="text/css"></link>
	<link href="style/zbCss/easyui_new.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" href="style/cxstyle.css" type="text/css"></link>
	<!-- 应急值班样式css -->
	<link rel="stylesheet" type="text/css" href="style/zbCss/pageTable.css" />
<!-- 初始化 -->
	<script type="text/javascript">
		function a(){
			$("#map").css("height",(document.documentElement.clientHeight-150)+"px");
		}
	</script>
	<script type="text/javascript">
		 $(document).ready(function(){
			 init();
			 lyCode = <%=lyCode %>;
			 /////综合查询结果栏对话框初始化
			  $('#dialogForQueryRes').dialog({
					draggable : true,
					top : 200,
					left : 900,
					title : "结果记录",
					collapsible : true,
					onClose:function(){
						closeForBaseInvestigate();
					}
				});
			   $("#dialogForQueryRes").dialog("close");
			   initTblJbqk01();//结果记录表格
			   ///////综合统计对话框初始化
			    $('#dialogForMultipleState').dialog({
					draggable : true,
					top : 200,
					left : 900,
					title : "综合统计",
					collapsible : true
					
				});
			   $("#dialogForMultipleState").dialog("close");
			    ///////影响区统计对话框初始化
			    $('#dialogForAffectAreaStat').dialog({
					draggable : true,
					top : 150,
					left : 700,
					title : "影响区信息",
					collapsible : true
					
				});
			   $("#dialogForAffectAreaStat").dialog("close");
		 });
	</script>
</head>
  
  <body style="font-family: 微软雅黑;margin:auto;overflow: hidden;"   onresize="a();" onunload="exit()">
  	<div class="logoDiv"></div>
  	<div class="userInfoPanel" id="userInfoPanel" >
<%--  	    <label>用户信息:</label>--%>
  	    
  		<label style="margin-left:5px;">欢迎您：</label><label id="userDiv" style="cursor: pointer;"><%=userName %></label>
  		 <a style="color:#aaccaa" href="javascript:exit()" target="_self">退出系统</a>
  		 <a href="javascript:help()" target="_self"  style="color:red;">系统帮助</a>
  	</div>
  	<div class="forUserInfoYincang">
  		<label style="margin-left:5px;" >单&nbsp;&nbsp;&nbsp;位：</label><label><%=userDW %></label>
  		<br/>
  		<label style="margin-left:5px;" >职&nbsp;&nbsp;&nbsp;责：</label><label  id="roleName" ><%=roleName %></label>
  	</div>
  	<div class="sbar" id="sFuncBar"><img src="image/BuzzyBee.png"  width="30px" height="30px"/></div>
  	<div class="bbar" id="bFuncBar"></div>
  	<div id="toolbar">
		<div title="放大" id="zoomIn" class="operator opZoomIn" ></div>
		<div title="缩小" id="zoomOut" class="operator opZoomOut" ></div>
		<div title="平移" id="pan" class="operator opPan" ></div>
		<div title="复位" id="restore" class="operator opRestore"></div>
	</div>
	<div id="slider"></div>
	<div id="map"></div>
	<div id="mapChangeBarDiv" class="mapChangeBarHide"></div>
	<div id="secondaryFuncBarDiv" class="secondaryFuncBarHide"></div>
	<div id="minDlgBar" ></div>
	<!-- 综合查询、高级查询结果栏 -->
	<div  id="dialogForQueryRes" style="padding:5px;width:300px;height:520px;" >
	<table class="innerStyle">
	<tr><td>十万调查点</td><td><span id="zhdGroup1"></span></td><td>五万调查点</td><td><span id="zhdGroup2"></span></td></tr>
	<tr><td>应急调查点</td><td><span id="zhdGroup3"></span></td><td>群测群防点</td><td><span id="zhdGroup4"></span></td></tr>
	<tr><td>重大灾害点</td><td><span id="zhdGroup5"></span></td><td>应急监测点</td><td><span id="zhdGroup6"></span></td></tr>
	<tr><td>未标示点</td><td><span id="zhdGroup"></span></td><td></td><td></td></tr>
	<tr><td>结果总点数</td><td><span id="zhdGroupSum"></span></td><td>实际物理点</td><td><span id="zhdGroupCount"></span></td></tr>
	</table>
	<table id="tbljbqk01" ></table>
	<input type="hidden" id="lyCode" value="<%=lyCode %>"/>
	</div>
	<div  id="dialogForMultipleState" style="width:480px;height:350px;" >
		<div id="MultipleState_chartDiv" align="center"></div>
	</div>
	<div  id="dialogForAffectAreaStat" style="width:700px;height:600px;" >
		<div id="AffectAreaStat_chartDiv" align="center"></div>
		<div id="affectAreaStatRes"></div>
	</div>
  </body>
</html>